package com.bob.usercenter.exception;

import com.bob.usercenter.common.ErrorCode;
import lombok.Data;

/**
 * @Author Bob
 * @Date：2024-01-24 22:23
 * @description：异常类
 */
@Data
public class BusinessException extends RuntimeException{
    private ErrorCode errorCode;

    public BusinessException(ErrorCode errorCode) {
        super(errorCode.getDescription());
        this.errorCode = errorCode;
        System.out.println();
    }
}
